<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="/css/common.css" rel="stylesheet" type="text/css" />
<style>
.wrapContent {height:600px;margin:0 auto;padding:0 30px;}
.center {text-align:center;}
.block {padding:10px 30px;}
.topBorder {border-top:1px solid #000;}
.rightBorder {border-right:1px solid #000;}
.lineHeight{height:26px;line-height:26px;}
</style>
</head>
<body>
<div class="wrapContent">
	<div class="block">
		<h2 class="center">部分发货订单</h2>
		<?php 
		if (empty($ordersInfo['data'])) {
			echo "<p>没有部分发货的订单！</p>";
		}else {
		?>
		<table cellpadding="0" cellspacing="0" style="width:100%;border:1px solid #000">
			<thead class="lineHeight">
				<td width="15%" class="rightBorder center">订单号</td>
				<td width="26%" class="rightBorder center">用户信息</td>
				<td width="15%" class="rightBorder center">下单时间</td>
				<td width="10%" class="rightBorder center">下单人</td>
				<td width="29%" class="center">发货信息</td>
			</thead>
			 <?php
				foreach($ordersInfo['data'] as $k=>$order) {
					echo '<tr class="lineHeight">';
					echo '<td class="topBorder rightBorder center"><a href="/admin/order.php?op=detail&id='.$order['id'].'&from=unfinished">'.$order['sn'].'</a></td>';
					echo '<td class="topBorder rightBorder center">'.$customerNamesInfo[$order['id']].'</td>';
					echo '<td class="topBorder rightBorder center">'.$order['create_time'].'</td>';
					echo '<td class="topBorder rightBorder center">'.$order['person_name'].'</td>';
					echo '<td class="topBorder center">'.$order['shipped_remark'].'</td>';
					echo '</tr>';
				}
			 ?>
		</table>
		<?php echo '<p class="page">' . ObjectFinder::get('PageUtil')->pagination($ordersInfo['total'], $conf['pageSize'], $page, $conf['baseUrl'].'/admin/order.php?op=queryUnFinished', 100) . '</p>'; ?>
		<?php } ?>
	</div>
</div>
</body>
</html>